package com.hl.service;

import com.hl.mapper.AnswerLeaveWordMapper;
import com.hl.pojo.AnswerLeaveWord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerLeaveWordServiceImpl implements AnswerLeaveWordService {
    @Autowired
    private AnswerLeaveWordMapper answerLeaveWordMapper;
    @Override
    public Integer add(AnswerLeaveWord answerLeaveWord) {
        return answerLeaveWordMapper.add(answerLeaveWord);
    }

    @Override
    public Integer update(AnswerLeaveWord answerLeaveWord) {
        return answerLeaveWordMapper.update(answerLeaveWord);
    }

    @Override
    public Integer delete(String id) {
        return answerLeaveWordMapper.delete(id);
    }

    @Override
    public AnswerLeaveWord findById(String id) {
        return answerLeaveWordMapper.findById(id);
    }

    @Override
    public List<AnswerLeaveWord> findByConsultantId(Integer consultantId) {
        return answerLeaveWordMapper.findByConsultantId(consultantId);
    }

    @Override
    public List<AnswerLeaveWord> findAll() {
        return answerLeaveWordMapper.findAll();
    }
}
